<%--
  Created by IntelliJ IDEA.
  User: TianyuChen
  Date: 2020/3/29
  Time: 21:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>update</title>
</head>
<body>
<form action="updateMenu" method="post">
    <input type="hidden" name="id" value="${menu.id }"/>
    父菜单:<select name="pid">
        <option value="0">根菜单</option>
        <c:forEach items="${allMenu }" var="am">
            <option value="${am.id }" <c:if test="${am.id == menu.pid }">selected="selected"</c:if> >${am.name}</option>
        </c:forEach>
    </select><br/>
    当前菜单名称:<input type="text" name="name" value="${menu.name }"/><br/>
    <input type="submit" value="修改"/>
</form>
</body>
</html>
